﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="VolunteeringList.aspx.cs" Inherits="MockPrjTeam1.Pages.Views.VolunteeringList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script>
    function chuyentrang() {
        window.location = "../Views/PremiseList.aspx";
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <div id="templatemo_main">
        <div>
            <asp:Label ID="Label1" Text="Premise Detail" Font-Size="Large" ForeColor="Green"
                runat="server"></asp:Label>
            <br />
            <asp:LinkButton ID="LinkbtnDetail1" ForeColor="Blue" runat="server" Width="60px"
                PostBackUrl="../../Pages/Forms/PremiseDetail.aspx"> Detail 1 </asp:LinkButton>
            <asp:LinkButton ID="LinkbtnDetail2" ForeColor="Blue" runat="server" Width="60px"
                PostBackUrl="../../Pages/Forms/PremiseDetail2.aspx"> Detail 2 </asp:LinkButton>
            <asp:LinkButton ID="LinkbtnDetail3" ForeColor="Blue" runat="server" Width="60px"
                PostBackUrl="../../Pages/Forms/PremiseDetail3.aspx"> Detail 3 </asp:LinkButton>
            <asp:LinkButton ID="LinkbtnDetail4" ForeColor="Blue" runat="server" Width="60px"
                PostBackUrl="../../Pages/Forms/PremiseDetail4.aspx"> Detail 4 </asp:LinkButton>
            
           
            <asp:LinkButton ID="LinkbtnFacilities" ForeColor="Blue" runat="server" Width="60px"
                PostBackUrl="../Views/FacilitiesList.aspx"> Facilities </asp:LinkButton>
                <td> Volunteering </td>
        </div>
        <table width="100%">
            <tr>
                <td width="60%">
                    <asp:LinkButton ID="link1" ForeColor="Blue" runat="server" Text="All" CssClass="style1"
                        OnClick="Filter" />&nbsp;|&nbsp;
                    <asp:LinkButton ID="link2" ForeColor="Blue" runat="server" Text="0-9" CssClass="style1"
                        OnClick="Filter" />&nbsp;|&nbsp;
                    <asp:LinkButton ID="link3" ForeColor="Blue" runat="server" Text="A B C D E" CssClass="style1"
                        OnClick="Filter" />&nbsp;|&nbsp;
                    <asp:LinkButton ID="link4" ForeColor="Blue" runat="server" Text="F G H I J" CssClass="style1"
                        OnClick="Filter" />&nbsp;|&nbsp;
                    <asp:LinkButton ID="link5" ForeColor="Blue" runat="server" Text="K L M N" CssClass="style1"
                        OnClick="Filter" />&nbsp;|&nbsp;
                    <asp:LinkButton ID="link6" ForeColor="Blue" runat="server" Text="O P Q R" CssClass="style1"
                        OnClick="Filter" />&nbsp;|&nbsp;
                    <asp:LinkButton ID="link7" ForeColor="Blue" runat="server" Text="S T U V" CssClass="style1"
                        OnClick="Filter" />&nbsp;|&nbsp;
                    <asp:LinkButton ID="link8" ForeColor="Blue" runat="server" Text="W X Y Z" CssClass="style1"
                        OnClick="Filter" />&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td align="right">
                    <asp:Button ID="btnCreate" runat="server" Text="Create" PostBackUrl="../Forms/VolunteeringDetail.aspx" />&nbsp;
                    <asp:CheckBox ID="cbInActive" runat="server" Text="Include In-active" OnCheckedChanged="GetAll"
                        AutoPostBack="true" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="grvVolunteering" runat="server" Width="100%" OnPageIndexChanging="PageChanging"
                        AutoGenerateColumns="False" ShowHeaderWhenEmpty="true" EnableModelValidation="True"
                        RowStyle-HorizontalAlign="Center" AllowPaging="True" PageSize="5">
                        <Columns>
                            <asp:HyperLinkField HeaderText="Contact" DataTextField="ContactID" ControlStyle-ForeColor="Blue"
                                DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../Forms/VolunteeringDetail.aspx?id={0}">
                            </asp:HyperLinkField>
                            <asp:BoundField HeaderText="Purpose" DataField="VteerPurpose" />
                            <asp:BoundField HeaderText="Number" DataField="VolunteerNo" />
                            <asp:BoundField HeaderText="Start Date" DataField="StartDate" />
                            <asp:BoundField HeaderText="End Date" DataField="EndDate" />
                            <asp:BoundField HeaderText="Is Active ? " DataField="Active" />
                        </Columns>
                    </asp:GridView>
                    &nbsp;<asp:Button ID="btnInActive" runat="server" Text="In-Activate" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSave" runat="server" Text="Save" Width="65px" Height="25px" TabIndex="16" />&nbsp;&nbsp;&nbsp;
                    <input type="button" value="Back" onclick="chuyentrang()" style="width: 65px; height: 25px;" />
                </td>
            </tr>
            
        </table>
    </div>

</asp:Content>
